<?php

namespace App\Listeners\CollectPackage;

use App\Events\CollectPackage\CreateCollectPackageEvent;
use App\Listeners\BaseListener;

class CreateCollectPackageListener extends BaseListener
{
    /**
     * Handle the event.
     *
     * @param CreateCollectPackageEvent $event
     * @return bool
     */
    public function handle(CreateCollectPackageEvent $event)
    {
        $this->saveFileLog(__CLASS__, $event);

        // 队列记录日志
        service()->LogCountService->createLogByQueue($event->logCountLoadData);

        return true;
    }
}
